﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PathologyDAL.Modle
{
    public class FilterCondition
    {
   

        [Required]
        public  string? Name { get; set; }

        [Key]
        public int Id { get; set; }

        public override string ToString()
        {
            return Name;
        }

        [Required]
        public Filter Filter { get; set; }

        [Required]

        public DateTime LastUpdated { get; set; }

       

        [NotMapped]
        public int Priority
        {
            get
            {
                return (int)Filter;

            }
        }


    }
}
